package com.pro.service.imple;

import com.pro.mapper.JsUserReturnCompleteMapper;
import com.pro.pojo.JsUserOrder;
import com.pro.service.JsUserReturnCompleteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * ClassName:JsUserReturnCompleteServiceImple
 * Package:com.pro.service.imple
 * Description:
 *
 * @Date:2021/11/12 下午 6:55
 * @Author: WYH
 */
@Service
public class JsUserReturnCompleteServiceImple implements JsUserReturnCompleteService {

    @Autowired(required = false)
    private JsUserReturnCompleteMapper jsUserReturnCompleteMapper;

    /**
     * @author WYH
     * @date 2021/11/12 下午 7:02
     * @content : 查询退货已完成列表
     */
    @Override
    public List<JsUserOrder> getAllReGoo(String orderPaymentChannel, String orderSource) {
        List<JsUserOrder> allReGoo = jsUserReturnCompleteMapper.getAllReGoo(orderPaymentChannel, orderSource);
        return allReGoo;
    }
    /**
     * @author WYH
     * @date 2021/11/12 下午 7:02
     * @content : 计算退货已完成列表个数
     */
    @Override
    public int count(String orderPaymentChannel, String orderSource) {
        int count = jsUserReturnCompleteMapper.count(orderPaymentChannel, orderSource);
        return count;
    }
    /**
     * @author WYH
     * @date 2021/11/12 下午 7:02
     * @content : 删除选中数据
     */
    @Override
    public Boolean delReGoo(Integer orderId) {
        Boolean aBoolean = jsUserReturnCompleteMapper.delReGoo(orderId);
        return aBoolean;
    }
}
